<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
{% load mptt_tags %}
{% recursetree nodes %}
<li>
    {% if node.is_leaf_node %}
    <span style="color: red;">{{ node.title }}</span>
    {% else %}
        {{ node.title }}
        <ul>
            {{ children }}
        </ul>
    {% endif %}
</li>
{% endrecursetree %}
</body>
</html>